package JAVACORE_TRAINING.OOPs.INHERISTANCE;

class Parent01 {
	String name;
}

public class ReferingProperty 
						extends Parent01 {
	String name;
	
    public void details()
    {
        super.name = "Parent";	    //refers to parent class member
        name = "Child";
        System.out.println(super.name+" and "+name);
    }
    
    public static void main(String[] args)
    {
    	ReferingProperty cobj = new ReferingProperty();
        cobj.details();
    }
}
